package com.liruo.springframework.core.aop.springinterceptor;

import org.springframework.stereotype.Component;

@Component
public class CommonTarget {
  public static final String SEPARATOR = "==";
  public static final String ERROR ="error";
  public String common(String str1, String str2){
    if(ERROR.equals(str1)){
      throw new RuntimeException(str1);
    }
    return str1 + SEPARATOR + str2;
  }
}
